
#pragma once

struct lua_State;

static const u_int uFS_SCRIPT_OUTPUT_BUFFER = 1024;

class FridgeScript
{
	public:

		static void Initialise();
		static void Shutdown();

		static void Execute( const char* szScript, const char* szFunc, const char* szID );

		static void ClearScriptOutput() { s_szScriptOutput[0] = 0; }
		static const char* GetScriptOutput() { return s_szScriptOutput; }
		static void AppendToScriptOutput( const char* szText );

	private:

		static lua_State* s_pxLua;

		static char s_szScriptOutput[ uFS_SCRIPT_OUTPUT_BUFFER ];
};

// eof
